import { StyleSheet, Text, View } from 'react-native'
import React, { Component } from 'react'
import { StatusBar } from 'expo-status-bar'
import { SafeAreaView } from 'react-native-safe-area-context'
import UIConstants from '../constants/UIConstants'

export default function ZhPage({bgColor=UIConstants.COLOR_GRAY_LIGHT,children}) {
    return (
      <View style={[ss.bg,{backgroundColor:bgColor}]}>
        <StatusBar backgroundColor={UIConstants.COLOR_GREEN}></StatusBar>
        <SafeAreaView>
          {children}
        </SafeAreaView>
      </View>
    )
  }

  let ss = StyleSheet.create({
    bg:{
      width:'100%',
      flex:1
    }
  })